package persistence.implementation;

import java.util.List;

import persistence.interfaces.IPaymentDao;
import model.Payment;
import model.Person;
import model.PersonBasis;

@Deprecated
public class PaymentDaoImpl implements IPaymentDao {
	private final IPaymentDao mPaymentDao;
	
	public PaymentDaoImpl(IPaymentDao paymentDao) {
		this.mPaymentDao = paymentDao;
	}

	@Override
	public List<Payment> getPaymentsByGiver(Person giver) {
		return this.mPaymentDao.getPaymentsByGiver(giver);
	}

	@Override
	public List<Payment> getPaymentsByReceiver(PersonBasis receiver) {
		return this.mPaymentDao.getPaymentsByReceiver(receiver);
	}

	@Override
	public boolean save(Payment payment) {
		return this.mPaymentDao.save(payment);
	}

	@Override
	public void delete(Payment payment) {
		this.mPaymentDao.delete(payment);
	}

}
